package a.f.d.a;

import a.c.ab;
import a.c.bb;
import a.c.e;
import a.c.m;
import a.c.n;
import a.c.v;
import a.c.w;
import a.c.x;
import a.c.z;
import a.d.f;
import a.f.d.fb;
import a.f.o;
import a.f.zc;
import a.i.db;

import java.util.ArrayList;
import java.util.List;

class bd
  implements fb
{
  private zb a;
  
  public bd(zb paramzb)
  {
    if (!d.R)
    {
      if (paramzb == null) {
        throw new NullPointerException();
      }
      this.a = paramzb;
    }
  }
  
  public int a(o paramo, x paramx, ab paramab)
  {
    boolean bool2 = d.R;
    boolean bool1 = d.Q;
    x localx = db.a();
    n localn = db.b();
    b_ localb_ = new b_(localx, localn);
    Object localObject1 = paramo.v();
    Object localObject2;
    do
    {
      if (!((w)localObject1).e()) {
        break;
      }
      e locale1 = ((w)localObject1).d();
      localObject2 = new d_(null, null, null);
      localx.a(locale1, localObject2);
      ((w)localObject1).f();
    } while (!bool1);
    localObject1 = new e_(localb_);
    this.a.a(paramo, (ac)localObject1, localb_);
    int i = 0;
    label220:
    label222:
    do
    {
      if (i >= ((ac)localObject1).a()) {
        break;
      }
      localObject2 = ((ac)localObject1).a(i);
      if (bool1) {
        break label234;
      }
      w localw = ((vb)localObject2).c().l();
      do
      {
        if (!localw.e()) {
          break;
        }
        e locale2 = localw.d();
        paramx.a(locale2, i);
        localw.f();
        if (bool2) {
          break label222;
        }
        if (bool1) {
          break label220;
        }
      } while (!bool1);
      if (!bool2) {
        i++;
      }
    } while (!bool1);
    if (!bool2) {
      paramab.clear();
    }
    label234:
    m localm = paramo.w();
    do
    {
      if (!localm.e()) {
        break;
      }
      localObject2 = localm.a();
      if ((!bool2) && (bool1)) {
        break label326;
      }
      if (paramx.getInt(((a.c.d)localObject2).e()) > paramx.getInt(((a.c.d)localObject2).f()))
      {
        paramo.e((a.c.d)localObject2);
        paramab.add(localObject2);
      }
      localm.f();
    } while (!bool1);
    label326:
    return ((ac)localObject1).a();
  }
  
  public zb a()
  {
    return this.a;
  }
  
  public void a(zb paramzb)
  {
    if (paramzb == null) {
      throw new IllegalArgumentException("null");
    }
    this.a = paramzb;
  }
  
  static final class e_
    implements ac
  {
    final List a = new ArrayList();
    final bc b;
    boolean c;
    
    e_(bc parambc)
    {
      this.b = parambc;
    }
    
    public ac b()
    {
      return new e_(this.b);
    }
    
    public vb a(int paramInt)
    {
      return (vb)this.a.get(paramInt);
    }
    
    public vb a(byte paramByte, int paramInt)
    {
      a_ locala_;
      if (!d.R) {
        if (this.a.size() > paramInt)
        {
          locala_ = new a_(paramByte, paramInt);
          this.a.add(paramInt, locala_);
          this.c = true;
          return locala_;
        }
      }
      if (this.a.size() == paramInt)
      {
        locala_ = new a_(paramByte, paramInt);
        this.a.add(locala_);
        return locala_;
      }
      throw new IndexOutOfBoundsException();
    }
    
    public void b(int paramInt)
    {
      if (paramInt < this.a.size() - 1) {
        this.c = true;
      }
      a_ locala_ = (a_)this.a.remove(paramInt);
      locala_.e = -1;
    }
    
    public int a()
    {
      return this.a.size();
    }
    
    void c()
    {
      boolean bool2 = d.R;
      boolean bool1 = d.Q;
      if ((bool2) || (this.c))
      {
        int i = 0;
        if (i < this.a.size()) {}
        while (bool2)
        {
          a_ locala_ = (a_)this.a.get(i);
          locala_.e = i;
          i++;
          if ((!bool2) && (bool1)) {
            return;
          }
          if (!bool1) {
            break;
          }
        }
        this.c = false;
      }
    }
    
    final class a_
      implements vb
    {
      int e;
      bb f = new bb();
      byte g;
      ab h = new ab();
      
      public void b()
      {
        if (!d.R) {
          if (this.e < 0) {
            throw new IllegalStateException();
          }
        }
        bd.e_.this.b(e());
      }
      
      public a_(byte paramByte, int paramInt)
      {
        this.e = paramInt;
        this.g = paramByte;
      }
      
      public void a(e parame)
      {
        bd.a_ locala_ = (bd.a_)bd.e_.this.b.a(parame);
        locala_.a(this);
        locala_.a(this.f.size());
        this.f.add(parame);
      }
      
      public int e()
      {
        if (!d.R) {
          if (bd.e_.this.c) {
            bd.e_.this.c();
          }
        }
        return this.e;
      }
      
      public pc f()
      {
        return null;
      }
      
      public void a(pc parampc) {}
      
      public bb c()
      {
        return this.f;
      }
      
      public byte d()
      {
        return this.g;
      }
      
      public void a(z paramz)
      {
        boolean bool2 = d.R;
        boolean bool1 = d.Q;
        if (!bool2) {
          if (paramz.size() != this.f.size()) {
            throw new IllegalArgumentException();
          }
        }
        v localv1 = paramz.f();
        v localv2 = this.f.f();
        int i = 0;
        do
        {
          if (localv1 == null) {
            break;
          }
          e locale = (e)localv1.c();
          localv2.a(locale);
          bd.a_ locala_ = (bd.a_)bd.e_.this.b.a(locale);
          locala_.a(i);
          i++;
          localv1 = localv1.a();
          localv2 = localv2.a();
        } while (!bool1);
      }
      
      public void b(e parame)
      {
        boolean bool2 = d.R;
        boolean bool1 = d.Q;
        int i = 0;
        v localv = this.f.f();
        do
        {
          if (localv == null) {
            break;
          }
          e locale = (e)localv.c();
          if ((bool2) || (locale == parame))
          {
            this.f.h(localv);
            if (bool2) {
              continue;
            }
            if (!bool1) {}
          }
          else
          {
            bd.a_ locala_ = (bd.a_)bd.e_.this.b.a(locale);
            locala_.a(i);
            i++;
          }
          localv = localv.a();
        } while (!bool1);
      }
      
      public z a()
      {
        return this.h;
      }
      
      public void a(a.c.d paramd)
      {
        this.h.add(paramd);
      }
    }
  }
  
  static final class b_
    implements bc
  {
    x a;
    n c;
    
    public b_(x paramx, n paramn)
    {
      this.a = paramx;
      this.c = paramn;
    }
    
    public y a(a.c.d paramd)
    {
      return (y)this.c.get(paramd);
    }
    
    public ec a(e parame)
    {
      return (ec)this.a.get(parame);
    }
  }
  
  static class d_
    extends bd.c_
    implements bd.a_
  {
    z v;
    f[] w;
    final d.tb_ x;
    
    d_(fc paramfc, vc paramvc, d.tb_ paramtb_)
    {
      super(paramvc);
      if (!d.R)
      {
        if (paramtb_ == null) {
          paramtb_ = d.tb_.g;
        }
        this.x = paramtb_;
      }
    }
    
    public d.tb_ l()
    {
      return this.x;
    }
    
    public byte d()
    {
      return 0;
    }
    
    public v b()
    {
      return (d.R) || (this.v != null) ? this.v.f() : null;
    }
    
    public v a(a.c.d paramd)
    {
      if (!d.R) {
        if (this.v == null) {
          this.v = new z();
        }
      }
      return this.v.b(paramd);
    }
    
    public void a(v paramv)
    {
      this.v.h(paramv);
    }
    
    public int c()
    {
      return (d.R) || (this.v != null) ? this.v.size() : 0;
    }
    
    public f a(int paramInt, zc paramzc)
    {
      boolean bool2 = d.R;
      boolean bool1 = d.Q;
      if (!bool2) {
        if (this.w == null) {
          this.w = new f[4];
        }
      }
      if (!bool2) {
        if (this.w[paramInt] == null)
        {
          if (!bool2) {}
          switch (paramInt)
          {
          case 0: 
            if (!bool2)
            {
              this.w[paramInt] = new f(0.0D, paramzc.c(), 0.0D);
              if (!bool1) {
                break;
              }
            }
            break;
          case 1: 
            if (!bool2)
            {
              this.w[paramInt] = new f(0.0D, paramzc.d(), paramzc.c());
              if (!bool1) {
                break;
              }
            }
            break;
          case 2: 
            if (!bool2)
            {
              this.w[paramInt] = new f(0.0D, paramzc.c(), paramzc.d());
              if (!bool1) {
                break;
              }
            }
            break;
          case 3: 
            this.w[paramInt] = new f(0.0D, paramzc.d(), 0.0D);
          }
        }
      }
      return this.w[paramInt];
    }
    
    public f b(int paramInt)
    {
      if (!d.R) {
        if (this.w == null) {
          return null;
        }
      }
      return this.w[paramInt];
    }
  }
  
  static abstract class c_
    implements bd.a_
  {
    vb q;
    int r;
    final fc s;
    vc t;
    e u;
    
    c_(fc paramfc, vc paramvc)
    {
      this.s = paramfc;
      this.t = paramvc;
    }
    
    public d.tb_ l()
    {
      return d.tb_.g;
    }
    
    public final vc n()
    {
      return this.t;
    }
    
    public final fc m()
    {
      return this.s;
    }
    
    public a.c.d g()
    {
      throw new UnsupportedOperationException();
    }
    
    public e f()
    {
      throw new UnsupportedOperationException();
    }
    
    public int h()
    {
      return this.q.e();
    }
    
    public e j()
    {
      return null;
    }
    
    public int i()
    {
      return this.r;
    }
    
    public void b(a.c.d paramd)
    {
      throw new UnsupportedOperationException();
    }
    
    public void b(e parame)
    {
      throw new UnsupportedOperationException();
    }
    
    public void a(vb paramvb)
    {
      this.q = paramvb;
    }
    
    public void a(int paramInt)
    {
      this.r = paramInt;
    }
    
    public ac k()
    {
      return null;
    }
    
    public Object e()
    {
      return null;
    }
    
    public e a()
    {
      return this.u;
    }
    
    public void a(e parame)
    {
      this.u = parame;
    }
    
    public v b()
    {
      return null;
    }
    
    public v a(a.c.d paramd)
    {
      throw new UnsupportedOperationException();
    }
    
    public void a(v paramv)
    {
      throw new UnsupportedOperationException();
    }
    
    public int c()
    {
      return 0;
    }
    
    public f b(int paramInt)
    {
      return null;
    }
    
    public f a(int paramInt, zc paramzc)
    {
      throw new UnsupportedOperationException();
    }
    
    public void a(vc paramvc)
    {
      this.t = paramvc;
    }
  }
  
  static abstract interface a_
    extends ec
  {
    public abstract void a(vb paramvb);
    
    public abstract void a(int paramInt);
    
    public abstract void a(e parame);
    
    public abstract void a(vc paramvc);
    
    public abstract v a(a.c.d paramd);
    
    public abstract void a(v paramv);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.d.a.bd

 * JD-Core Version:    0.7.0.1

 */